<span id="loginBar_<{$widgets_id}>" style="display:none">
<{foreach from=$data.login_content item=login}>
<{$login}>
<{/foreach}>
  <a href="<{link app=b2c ctl=site_passport act=login}>"><{t app='b2c'}>[请登录]<{/t}></a>&nbsp;&nbsp;
  <{if $data.open_id_open == 'true'}>
      [<a  class="trustlogin trust__login" href="javascript:void(0)"><{t}>信任登录<{/t}></a>]&nbsp;&nbsp;
	  <div id="accountlogin" ><h5>您还可以使用以下帐号登录：</h5><div class="logoimg"><span><img src="<{$data.res_url}>/accountlogos/trustlogo1_small.gif" /></span><span><img src="<{$data.res_url}>/accountlogos/trustlogo2_small.gif" /></span><span><img src="<{$data.res_url}>/accountlogos/trustlogo3_small.gif" /></span><span><img src="<{$data.res_url}>/accountlogos/trustlogo4_small.gif" /></span><span><img src="<{$data.res_url}>/accountlogos/trustlogo5_small.gif" /></span></div><div class="more"><a href="#">更多»</a></div>
	  </div>
	  <{/if}>
  <a href="<{link app=b2c ctl=site_passport act=signup}>"><{t app='b2c'}>[免费注册]<{/t}></a>
</span> 
<span id="memberBar_<{$widgets_id}>" style="display:none">
    <{t app='b2c'}>您好<{/t}><span id="uname_<{$widgets_id}>"></span>！
  <a href="<{link app=b2c ctl=site_member act=index}>"><{t app='b2c'}>[会员中心]<{/t}></a>&nbsp;&nbsp;
  <a href="<{link app=b2c ctl=site_passport act=logout}>"><{t app='b2c'}>[退出]<{/t}></a>
</span>
 <{if $data.open_id_open=='true' && !$env.cookie.MEMBER}>
<style id='thridpartystyle'>
.trustlogin { background:url(<{$data.res_url}>/icons/thridparty1.gif) no-repeat left; padding-left:18px; height:20px; line-height:20px; }
#accountlogin{visibility:hidden;cursor:pointer;padding-top:0px; position:absolute; border:2px solid #BADBF2; background:#fff; }
.logoimg { margin:0 2px 0 2px;}
</style>

<script>
(function(){
    var loginBtn=$ES('.trust__login','loginBar_<{$widgets_id}>'),timer;
	$$(loginBtn,$('accountlogin')).addEvents({'mouseenter':function(){
			if(timer)$clear(timer);
			$('accountlogin').setStyles({'visibility':'visible','top':'20','left':'10'});
		},'mouseleave':function(){
			timer=function(){$('accountlogin').setStyle('visibility','hidden')}.delay(200);
		}
	});
	$('accountlogin').addEvent('click',function(e){loginBtn.fireEvent('click');})
})();
</script>
<{/if}>
<script>
if(Cookie.read('UNAME')){
	$("uname_<{$widgets_id}>").innerHTML = Cookie.read('UNAME');
	$("memberBar_<{$widgets_id}>").setStyle('display','block');
}
else{
	$("loginBar_<{$widgets_id}>").setStyle('display','block');
} 
</script>


